package com.ckjava.test.service;

import com.ckjava.test.entity.UserEntity;
import org.springframework.stereotype.Service;


@Service
public class UserService {

    public UserEntity getUser(String name) {

        checkName(name);

        return new UserEntity("1", name);
    }

    public UserEntity getUserAsync(String name) throws Exception {

        checkName(name);

        return null;
    }

    public void checkAge(Integer age) {
    }

    public boolean checkName(String name) {
        return true;
    }
}
